package com.wolves.career.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wolves.career.entity.ProProfessional;
import com.wolves.career.mapper.ProProfessionalMapper;
import com.wolves.career.service.ProProfessionalService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.management.Query;
import java.util.List;

/**
 * <p>
 * 专业类 服务实现类
 * </p>
 *
 * @author 麦翔盛
 * @since 2021-10-31
 */
@Service
public class ProProfessionalServiceImpl extends ServiceImpl<ProProfessionalMapper, ProProfessional> implements ProProfessionalService {



    @Override
    public List<ProProfessional> getProfessionByCategoryId(String categoryId) {
        QueryWrapper<ProProfessional> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("category_id",categoryId);
        List<ProProfessional> list = baseMapper.selectList(queryWrapper);

        return list;
    }
}
